import json
import os


class Config():
    FILE_PATH = os.getcwd() + "\\config\\Config.json"

    config = None

    def __init__(self):
        self.config = json.load(open(self.FILE_PATH, 'r', encoding="utf-8"))

    def getInstance(self):
        if self.config is None:
            self.config = json.load(open(self.FILE_PATH, 'r', encoding="utf-8"))
        return  self.config

    def getUserConfig(self):
        return  self.config["user_config"]

    def getRunConfig(self):
        return self.config["run_config"]

